package com.cs.paoyer.common.exception;

import com.cs.paoyer.common.util.EmailSender;
import javax.mail.MessagingException;

/**
 * Gestiona el env�o de mensajes de excepci�n.
 *
 * @version 1.0
 */
public class ExceptionSender implements Runnable {

    SystemException systemException;

    public ExceptionSender( SystemException systemException ) {
        this.systemException = systemException;
    }

    public void run() {
        try {
            EmailSender.postExceptionMail( this.systemException );
        } catch ( MessagingException e ) {
			System.err.println("/******** TDSUB - cwsub");
			e.printStackTrace();
			System.err.println("TDSUB - cwsub ********/");
        }

    }


}